/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.xd.dao;

import java.util.Collection;
import java.util.List;

import com.xy.biz.xd.domain.po.DocumentFlowBorrowPO;
import com.xy.biz.xd.domain.query.DocumentFlowBorrowQuery;

/**
 *
 *
 * @author wwj
 * @date 2021-3-8
 */
public interface DocumentFlowBorrowDao {

	/**
	 * 保存
	 *
	 * @param documentFlowBorrowPO
	 */
	int saveDocumentFlowBorrow(DocumentFlowBorrowPO documentFlowBorrowPO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllDocumentFlowBorrow(Collection<DocumentFlowBorrowPO> collection);

	/**
	 * 更新
	 *
	 * @param documentFlowBorrowPO
	 */
	int updateDocumentFlowBorrow(DocumentFlowBorrowPO documentFlowBorrowPO);

	/**
	 * 删除
	 *
	 * @param documentFlowBorrowId
	 */
	int deleteDocumentFlowBorrow(Long documentFlowBorrowId);

	/**
	 * 查找一个
	 *
	 * @param documentFlowBorrowId
	 * @return
	 */
	DocumentFlowBorrowPO getDocumentFlowBorrow(Long documentFlowBorrowId);

	/**
	 * 查找多条
	 *
	 * @param collection
	 * @return
	 */
	List<DocumentFlowBorrowPO> listDocumentFlowBorrowById(Collection<Long> collection);

	/**
	 * 条件查找多条
	 *
	 * @param query 查找条件
	 * @return
	 */
	List<DocumentFlowBorrowPO> listDocumentFlowBorrow(DocumentFlowBorrowQuery query);

	/**
	 * 条件统计个数
	 *
	 * @param query 查找条件
	 * @return
	 */
	int countDocumentFlowBorrow(DocumentFlowBorrowQuery query);

}
